import QtQuick 2.7
import "./"

Rectangle
{
    property string inputContent:""
    border.width: 1
    border.color: enabled?View.mainColor:View.enableColor

    signal inputPathChanged();


    TextEdit{
        id:textInput
        anchors.fill: parent
        anchors.margins: 3
        horizontalAlignment: TextEdit.AlignLeft
        verticalAlignment: TextEdit.AlignVCenter
        font.family: View.mainFontFamily
        font.pointSize: View.mainFontSize
        color:enabled?View.mainWordColor:View.enableColor
        text:inputContent
        clip:true

        onTextChanged: {
            inputPathChanged();
            inputContent = textInput.text
        }

    }

}
